import os
import sys


def publish_html():
    ret = os.system("go build  -o publish_html src/publish_html.go ")
    if (ret == 0):
        print("suc! ")
        return
    print("failed!")


BIN_LIST = {
    "publish_html": publish_html
}

if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("input the name for build!")
        sys.exit()
    if sys.argv[1] in BIN_LIST:
        BIN_LIST.get(sys.argv[1])()
